%%%
%将度中心性和基于模体的特征向量中心性性通过DS融合的代码

tic;
load Bos_Multiplex_Genetic/B.mat
N=size(B{1,1},1);L=size(B,2);
beta=0.3;

load Bos_results/Eig_motif_value.mat
load Bos_results/total_degree.mat
x=total_degree';
mu=0.15; epision=0.15;
DS_Degree_Eig = DS_2_func(x, Eig_value, N, mu, epision);

[DS_node nocomm_node_idex_DS]=sort(DS_Degree_Eig,'descend');%重力模型
[degree_node nocomm_node_idex_degree]=sort(total_degree,'descend');%重力模型

 DS_Degree_Eig_rank=[DS_node,nocomm_node_idex_DS];
 Degree_rank=[degree_node',nocomm_node_idex_degree'];

 [Eig_node nocomm_node_idex_eig]=sort(Eig_value,'descend');%重力模型
 Eig_rank=[Eig_node,nocomm_node_idex_eig];
 t2=toc;
 t=t2;
 
  save('Bos_results/DS_Degree_Eig_rank.mat','DS_Degree_Eig_rank');

 save('Bos_results/DS_2_time.mat','t');

  save('Bos_results/DS_Degree_Eig.mat','DS_Degree_Eig');

